﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CaseCategorys;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.CaseCategorys.EntityMapper.CaseCategorys
{

    /// <summary>
    /// 矛盾纠纷案例菜单表的数据配置文件
    /// </summary>
    public class CaseCategoryCfg : EntityTypeConfiguration<CaseCategory>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public CaseCategoryCfg()
        {
            ToTable("CaseCategory", AbpZeroTemplateConsts.SchemaName.Basic);


            // 菜单名称
            Property(a => a.Title).HasMaxLength(100);
            // 所有子菜单
            Property(a => a.ClassList).HasMaxLength(500);
            // 内容
            Property(a => a.Content).HasMaxLength(4000);
        }
    }
}